package com.braveman.im.manager;


import com.ht.baselibs.retrofit.RequestUtils;
import com.braveman.im.api.Api;

public class ApiManager {
    private static Api api;

    public static Api getApi() {
        if (api == null) {
            synchronized (ApiManager.class) {
                if (api == null) {
                    api = (Api) RequestUtils.getInstance().create(Api.class);

                }
            }
        }
        return api;
    }
}